﻿using System;
using System.Web;
using System.Web.SessionState;
using TSharp.Core.Util;

namespace TSharp.Core.AppBox.Handlers
{
    public abstract class BaseHttpHandler : IHttpHandler, IRequiresSessionState, IDisposable
    {
        public string _requestType { get; private set; }

        public ParameterizedUri Url { get; private set; }

        public string _pathTranslated { get; private set; }

        public BaseHttpHandler(HttpContext context, string requestType, string url, string pathTranslated)
        {
            this._requestType = requestType;
            this.Url = url;
            this._pathTranslated = pathTranslated;
        }
        public virtual bool IsReusable
        {
            get { return true; }
        }

        public abstract void ProcessRequest(HttpContext context);


        public virtual void Dispose()
        { }


    }
}